import request from '@/utils/request';

/**
 * POST 异常创建货值管理手动新建版本
 * @pathParam apiVersion true
 * @queryParam projectFid true
 * @queryParam versionType true
 */
export function exceptionPriceVersionUsingPOST({ params, data }) {
  return request('price/exceptionPriceVersion', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * POST 创建货值普调版本
 * @pathParam apiVersion true
 * @queryParam projectFid true
 * @queryParam versionType true
 */
export function batchAdjustPriceVersionPOST({ params, data }) {
  return request('price/batchAdjustPriceVersion', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * POST 明源定调价通知刷新指定货值版本
 * @pathParam apiVersion true
 * @bodyParam msg true
 * @queryParam versionId true
 */
export function modifyNoticeByVersionIdUsingPOST({ params, data }) {
  return request('price/modifyNoticeByVersionId', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 货值管理全部导出
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function priceExcelExportUsingGET({ params, data }) {
  return request('price/priceExcelExport', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 货值管理指定项目和时间节点定稿生成
 * @pathParam apiVersion true
 * @queryParam finalizationTime true
 * @queryParam stageId true
 */
export function priceFinalizationToProjectAndTimeUsingPOST({ params, data }) {
  return request('price/priceFinalizationToProjectAndTime', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 货值管理版本当前分期最新版本信息
 * @pathParam apiVersion true
 * @queryParam projectFid true
 */
export function priceNewestVersionUsingGET({ params, data }) {
  return request('price/priceNewestVersion', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询货值管理信息
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function getPriceVersionUsingGET({ params, data }) {
  return request('price/priceVersion', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 创建货值管理手动新建版本
 * @pathParam apiVersion true
 * @queryParam projectFid true
 * @queryParam versionType true
 */
export function createPriceVersionUsingPOST({ params, data }) {
  return request('price/priceVersion', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * DELETE 删除货值管理版本信息
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function deletePriceVersionUsingDELETE({ params, data }) {
  return request('price/priceVersion', {
    method: 'DELETE',
    params,
    data,
  });
}

/**
 * PUT 货值管理重新打考核标签
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function priceVersionAssessmentLableUsingPUT({ params, data }) {
  return request('price/priceVersionAssessmentLable', {
    method: 'PUT',
    params,
    data,
  });
}

/**
 * POST 货值管理版本对比
 * @pathParam apiVersion true
 * @bodyParam priceCompareVersionIdsVOs true
 */
export function priceVersionCompareUsingPOST({ params, data }) {
  return request('price/priceVersionCompare', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * GET 货值管理版本对比版本信息
 * @pathParam apiVersion true
 * @queryParam projectId true
 * @queryParam versionType true
 */
export function priceVersionCompareBasicInfoUsingGET({ params, data }) {
  return request('price/priceVersionCompareBasicInfo', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询货值管理信息详情
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function priceVersionDetailUsingGET({ params, data }) {
  return request('price/priceVersionDetail', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * GET 查询货值管理版本列表
 * @pathParam apiVersion true
 * @queryParam projectFid true
 * @queryParam versionType true
 */
export function getPriceVersionListUsingGET({ params, data }) {
  return request('price/priceVersionList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * PUT 保存货值管理
 * @pathParam apiVersion true
 * @bodyParam priceWarPlanReqParam true
 */
export function saveWarPlanPriceVersionUsingPUT({ params, data }) {
  return request('price/priceVersionOrg', {
    method: 'PUT',
    params,
    data,
  });
}

/**
 * POST 货值管理金蝶迁移
 * @pathParam apiVersion true
 */
export function priceVersionTransferUsingPOST({ params, data }) {
  return request('price/priceVersionTransfer', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * PUT 货值管理版本修改状态
 * @pathParam apiVersion true
 * @queryParam versionIds true
 * @queryParam versionState true
 */
export function priceVersionUpdateStateUsingPUT({ params, data }) {
  return request('price/priceVersionUpdateState', {
    method: 'PUT',
    params,
    data,
  });
}

/**
 * GET 货值管理简单校验
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function priceVersionValidatedUsingGET({ params, data }) {
  return request('price/priceVersionValidated', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 刷新分期下货值版本实际数据
 * @pathParam apiVersion true
 * @queryParam projectFid true
 */
export function refreshPriceValueByStageIdUsingPOST({ params, data }) {
  return request('price/refreshPriceValueByStageId', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * POST 货值差异概览
 * @pathParam apiVersion true
 * @queryParam code true
 * @bodyParam priceCompareVersionIdsVOs true
 */
export function valueDifferenceReviewUsingPOST({ params, data }) {
  return request('price/valueDifferenceReview', {
    method: 'POST',
    params,
    data,
  });
}

/**
 * POST 查询集团审批版版本列表
 * @pathParam apiVersion true
 * @queryParam projectId true
 */
export function priceGroupPriceVersionList({ params, data }) {
  return request('price/groupPriceVersionList', {
    method: 'GET',
    params,
    data,
  });
}

/**
 * POST 查询集团审批版信息
 * @pathParam apiVersion true
 * @queryParam versionId true
 */
export function priceGroupPriceVersion({ params, data }) {
  return request('price/groupPriceVersion', {
    method: 'GET',
    params,
    data,
  });
}
